<?php 

echo $this->element('top_menu', array());

?>

<h1>user</h1>
<form action="/test_1/groups/save" method="post" id="form_user_edit">
<table>
    <tr>
        <th>Descrizione</th>
    </tr>

	<tr>
		<td><input type="hidden" name="id" value="<?php echo $group['Group']['id'];?>" />
			<input type="text" name="descrizione" value="<?php echo $group['Group']['descrizione'];?>" />
		</td>
	</tr>
	<tr>
		<td>
			<input type="submit" size="30" value="Conferma" />
		</td>
		<td>
			<input type="button" size="30" onclick="elimina()" value="Elimina" />
		</td>
		<td>
			<a type="button" href="/test_1/groups">Esci</a>
		</td>
	</tr>

	<?php unset($group); ?> 
</table>

</form>

<script>
	function elimina() {
		$("#form_user_edit").attr("action", "/test_1/users/delete").submit(); 
	}
</script>